<template>
	<view>

	</view>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import {
		ref
	} from 'vue'
	import {
		CONFIG,
	} from "../../utils/config"
	let model = ref({
		"model": "moonshot-v1-8k",
		"messages": [],
		"temperature": 0.3
	})
	let historys = ref([])

	async function question() {
		historys.value.push({
			"role": "user",
			"content": "我是陈＋"
		})
		model.value.messages = historys.value
		let res = await uni.$post(CONFIG.kimi_url, model.value)
		console.log(res)
	}
	question()
</script>

<style>

</style>